package com.twu.biblioteca;

import java.util.ArrayList;

public class Book {
    private String name;
    private int bookID;
    int reserveCopyCount;
    ArrayList<bookItem> bookCopies;
    public Book(String title, int bookId){
        name = title;
        bookID = bookId ;
        reserveCopyCount = 0;
        bookCopies = new ArrayList<bookItem>();
    }

    //Returns book title
    public String getTitle(){
        return name;
    }

    //Returns book id, for reservation purposes
    public Integer getBookID(){
        return bookID;
    }
    //Returns books available to reserve
    public int availibleCopies(){
        return bookCopies.size()-reserveCopyCount;
    }
}
